﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//  *
// ***
//*****
// ***
//  *

//边长是3
//行列数就是5

namespace ConsoleApp1
{
    class LingXing
    {
        static void Main(string[] args) {
            Console.WriteLine("请输入棱长：");
            string a = Console.ReadLine();
            int b = Convert.ToInt32(a);
            for (int i = 1; i <= b; i++)
            {
                for (int j = 1; j <= b-i; j++)
                {
                    Console.Write(" ");
                }
                for (int k = 1; k <= 2*i-1; k++)
                {
                    Console.Write("*");
                }
                Console.WriteLine();
            }
            for (int i = 1; i <= b-1; i++)
            {
                for (int j = 1; j <= i; j++)
                {
                    Console.Write(" ");
                }
                for (int k = 2*b-3; k >= 2*i-1; k--)
                {
                    Console.Write("*");
                }
                Console.WriteLine();
            }
        }
    }
}
